package com.eight.paper.admin.util;

import static com.eight.paper.admin.domain.model.enums.QuestionTypeEnum.*;

/**
 * 试题处理方法
 */
public class QuestionUtil {
    /**
     * 判断是否是客观题，客观题返回true，主观题返回false
     * @param questionType
     * @return
     */
    public static boolean checkQuestionType(String questionType){
        if(GapFilling.getCode().equals(questionType)||Explain.getCode().equals(questionType)||ShortAnswer.getCode().equals(questionType)||Analysis.getCode().equals(questionType)||Discuss.getCode().equals(questionType)) {
            return false;
        }else {
            return true;
        }
    }
}
